$(function () {

    $.ajax({
        url:"/webapi/student/list",
        type:"GET",
        success:function (data) {

            let html;
            for (let i = 0; i < data.length; i++) {
                const item = data[i];

                html += "<tr>"

                html += "<td>" + item.id + "</td>";
                html += "<td>" + item.name + "</td>";
                html += "<td>" + item.score + "</td>";

                html += "</tr>"
            }

            $("#students").html(html);

            console.log(data);

        }
    })

})